<?php

namespace app\provider;

class PackageProvider
{
    /**
     * 注册服务
     */
    public function register(){
        container()->bind([
            "L_package"=>'app\logic\L_package',
        ]);
    }

    /**
     * 启动服务
     */
    public function boot(){
        $info=app("L_package")->info();
        data()->set(array("package"=>$info),"cms");
    }
}